@import '~@alife/aone-core/variables/index.scss';

.aisc-color-tag {
  margin: 0 6px;
}
.cr-state {
  margin-left: 8px;
  .next-icon::before {
    line-height: 1px;
  }
}
.cr-title {
  display: inline-block;
  max-width: 500px;
  padding-right: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  float: left;
}
.cr-list-icon {
  vertical-align: middle;
  margin: 0 4px;
}

.assignee-status {
  margin-left: 2px;
  // 已通过
  &-approved {
    color: $color-success;
  }
  // 已评论
  &-comment {
    color: $color-info;
  }
  // 待审核
  &-pending {
    color: #ccc;
  }
}

.cr-list-item-repo {
  color: $gray-08;
}
.cr-list-item-branch-container {
  display: inline-flex;
  align-items: center;
  .cr-list-item-branch {
    max-width: 54px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    color: $gray-08;
  }
}

.cr-list-item {
  // cr列表项描述倒数第二项是时间，需加宽
  .at-list-item-body-description-item:nth-last-child(3) {
    max-width: 200px;
  }
  // 调整icon的位置
  .at-text-avatar-container .at-text-avatar-container-icon {
    left: 12px;
    .reviewed {
      font-size: 10px;
      color: #2e85ff;
    }
    .commented {
      font-size: 10px;
      color: $primary-success;
    }
    .not-reviewed {
      font-size: 10px;
      color: $gray-06;
    }
  }
}
